define(["jquery","template","bch/template/classManager/classDetail.tpl"],function($,template,tpl){
	var ui = {};

	var drawInfo = function(data){
		return template("tpl_classDetail_info",data);
	}
	var drawEditClass = function(data){
		return template("tpl_classDetail_editClass",data);
	}
	var drawModalWrap = function(data){
		return template("tpl_classDetail_modalWrap",data);
	}

	ui.info = function(options){
		$("#" + options.id).html(tpl.info());
		var h = drawInfo(options.data);
		$("#" + options.id).html(h);
	}
	ui.editClass = function(options){
		options.dom.html(tpl.editClass());
		var h = drawEditClass(options.data);
		options.dom.html(h);
	}
	ui.modalWrap = function(options){
		options.dom.html(tpl.modalWrap());
		var h = drawModalWrap(options);
		options.dom.html(h);
	}

	return ui;
});